<?php
/**
 * Created by PhpStorm.
 * User: KaZeline
 * Date: 15-4-27
 * Time: 上午10:18
 */

header("Content-type: text/html; charset=utf-8");
//$type = 'map';
//$mid = array(7517=>'厦门鼓浪屿',108=>'三亚休闲游',4=>'先行旅游');
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>订单手机归属地统计图--testing</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="ECharts">
    <meta name="author" content="kener.linfeng@gmail.com">
    <link rel="shortcut icon" href="http://echarts.baidu.com/doc/asset/ico/favicon.png">
    <link href="http://echarts.baidu.com/doc/asset/css/font-awesome.min.css" rel="stylesheet">
    <link href="http://echarts.baidu.com/doc/asset/css/bootstrap.css" rel="stylesheet">
    <link href="http://echarts.baidu.com/doc/asset/css/carousel.css" rel="stylesheet">
    <link href="http://echarts.baidu.com/doc/asset/css/echartsHome.css" rel="stylesheet">
    <link href="http://www.12301.cc/css/ui/zpie.css" rel="stylesheet">
	<script language="javascript" src="http://www.12301.cc/js/jquery-1.8.0.min.js"></script>
	<script src="http://www.12301.cc/module/zax/baiduline/map_2/map5.js"></script>
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
	<script language="javascript" src="http://www.12301.cc/js/WdatePicker.js"></script>
    <script src="http://echarts.baidu.com/doc/example/www/js/echarts.js"></script>
    <script src="http://echarts.baidu.com/doc/asset/js/esl/esl.js"></script>
	
</head>

<body>
    <!-- Fixed navbar -->
    <div class="navbar navbar-default navbar-fixed-top" role="navigation" id="head">
        <form name="ti" action="" method="get">
		 <input id="cType" type="hidden" value="map"/>
		<div class="time_select_a">
			<ul class="time_ul">
				<li  class="time_li weeka active" data-time="<?=date('Y-m-d',strtotime('-7days'))?>">一周</li>
				<li  class="time_li moutha" data-time="<?=date('Y-m-d',strtotime('-30days'))?>">一月</li>
				<li  class="time_li springa" data-time="<?=date('Y-m-d',strtotime('-90days'))?>">一季度</li>
				<li  class="time_li_a wangt" >自定义</li>
			</ul>
			<div class="time_show_a">
				<span class="time_le"><?=date('Y-m-d',strtotime('-7days'))?></span>至 <span class="time_te"><?php echo(date('Y-m-d'));?></span>
			</div>
			<div class="time_none_a">
				<input type="text" data-t="bt" id="txtStartTime_c" value="<?php echo(date('Y-m-d'));?>"  data-msg="请选择时间段" class="textInp w175 alliNameInp" autocomplete="off"/> 至 
				<input type="text" data-t="et" id="txtEndTime_c" value="<?php echo(date('Y-m-d'));?>"  data-msg="请选择时间段" class="textInp w175 alliNameInp" autocomplete="off"/>
				<input type="text" id="sub" value="确定">
			</div>
		</div>
        </form>
    </div>
    <div class="container featurette" id="container_map">
        <div class="row">
            <div id="graphic" class="col-md-12">
                <div id="main" style="height:400px;width:100%"></div>
            </div><!--/span-->
        </div><!--/row-->
    </div><!--/.fluid-container-->
    <footer id="footer"></footer>
    <!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="http://echarts.baidu.com/doc/asset/js/jquery.min.js"></script>
    <script src="http://echarts.baidu.com/doc/asset/js/bootstrap.min.js"></script>
    <script src="http://www.12301.cc/js/global/www.12301.cc.global.js"></script>
    <script src="http://www.12301.cc/module/zax/baiduline/map_2/map5.js"></script>
	<script>
	// $(".weeka").click(function(){
		// $("#ztime").val("1");
		// $(".wangt").removeClass("active");
		// $("#ti").submit();
	// })
	// $(".moutha").click(function(){
		// $("#ztime").val("2");
		// $(".wangt").removeClass("active");
		// $("#ti").submit();
	// })
	// $(".springa").click(function(){
		// $("#ztime").val("3");
		// $(".wangt").removeClass("active");
		// $("#ti").submit();
		
	// })
	// $(".wangt").click(function(){
	    // $(this).addClass("active");
		// $(".weeka").removeClass("active");
		// $(".moutha").removeClass("active");
		// $(".springa").removeClass("active");
		// $(".time_show_a").css("display","none");
		// $(".time_none_a").css("display","block");
	// })
	// $("#sub").click(function(){
		// $("#ztime").val("4");
	// })
	$("#txtStartTime_c").bind("click focus", function () {
       var endtimeTf = $dp.$('txtEndTime_c');
       WdatePicker({
           maxDate: '#F{$dp.$D(\'txtEndTime_c\')}',
           dateFmt: "yyyy-MM-dd",
           onpicked: function () { endtimeTf.focus(); }
            });
       });
    $("#txtEndTime_c").bind("click focus", function () {
            WdatePicker({
               minDate: '#F{$dp.$D(\'txtStartTime_c\')}',
               dateFmt: "yyyy-MM-dd"
           });
       });

	</script>
</body>
</html>
